package org.example.service;

import org.example.dto.MajorDto;
import org.example.vo.MajorVo;

import java.util.List;

public interface MajorService {
    Integer addMajor(MajorVo major);
    Integer updateMajor(MajorVo major);
    Integer deleteMajor(Integer majorId);
    List<MajorDto> queryAllMajor();
    Integer countMajor();
    List<MajorDto> queryMajorByDepartmentName(String departmentName);
    MajorDto queryMajorById(Integer majorId);
    Integer countMajorByDepartment(String department);
}
